<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:ec="http://www.b2cexpress.com.br/ecommerce"
    	xmlns:s="http://www.suricattus.com.br/jsf/ui"
		xmlns:sf="http://www.suricattus.com.br/jsf/fn"
    	xmlns:composite="http://java.sun.com/jsf/composite">
    	
	<composite:interface>
		<composite:attribute name="autoUpdate" default="false" shortDescription="AJAX auto update. Default: false."/>
	</composite:interface>
	
	<composite:implementation>
		
		<p:outputPanel autoUpdate="#{cc.attrs.autoUpdate}">
			<h:form>
				<h:panelGroup rendered="#{sf:hasGlobalMessages()}">
					<div class="well well-small" style="padding: 3px;">
						<p:commandLink update="@form" global="false" styleClass="pull-right" style="opacity: .35;">
							<i class="icon-remove"/>
						</p:commandLink>
						<ec:messages globalOnly="true" layout="table"/>
					</div>
				</h:panelGroup>
			</h:form>
		</p:outputPanel>
		
	</composite:implementation>
	
</html>
